package com.zaydanwu.cla.service.Impl;

import com.zaydanwu.cla.dao.CourseMapper;
import com.zaydanwu.cla.model.Course;
import com.zaydanwu.cla.service.CourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wzo
 * @since 2.0.0 2018-12-13
 */
@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public Course getCourseByTearcherName(String teacherName) {
        return courseMapper.getCourseByTearcherName(teacherName);
    }
}
